import {reqTalkDetail} from '../../api/talkIndex';
Page({

	/**
	 * 页面的初始数据
	 */
	data: {
		id:'',
    active: 1,
		value: 3,
		info:{},
		questAnswer:[],
  },
  
// 星星函数
  onChange(event) {
    this.setData({
      value: event.detail,
    });
  },

	/**
	 * 生命周期函数--监听页面加载
	 */
	onLoad(p) {
		this.setData({id:p.id});
		this.getData();
	},
	onShow(p){

	},
	async getData(){
		console.log(this.data.id);
		let res = await reqTalkDetail({id:this.data.id,channelId:409})
		if(res.code == 1){
			this.setData({info:res.data.consultantBaseInfoVo,questAnswer:res.data.interviewList})
		}
	},
  onChange(event) {
    this.setData({ active: event.detail });
	},
	onBack(){
		wx.navigateBack();
	}
})